{{!
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements.  See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership.  The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License.  You may obtain a copy of the License at
*
*     http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
}}

<div id="kerberos-wizard-step1" class="wizard-content col-md-9">
  <h4 class="step-title">{{t admin.kerberos.wizard.step1.header}}</h4>
  <p class="step-description">
    {{t admin.kerberos.wizard.step1.info.body}}
  </p>
  <div class="alert alert-warning">
    {{t admin.kerberos.wizard.step1.alert.body}}
  </div>

  <div class="panel panel-default">
    <div class="panel-body">
      <div id="kerberos-step1-options-body">
        {{t admin.kerberos.wizard.step1.body.text}}
        {{#each option in options}}
          {{view App.RadioButtonView
            classNames="radio"
            name="option.displayName"
            labelClassNames="kerberos-step1-option-radiobutton"
            labelBinding="option.displayName"
            selectionBinding="selectedItem"
            valueBinding="option.value"}}
        {{/each}}
        <br/>
      </div>
      <div class="alert alert-info" id="kerberos-step1-prerequisites-body">
        <h5>{{selectedOption.displayName}}:</h5>
        <b>{{t admin.kerberos.wizard.step1.prerequisites.label}}</b> <br/> <br/>
        {{#each condition in selectedOption.preConditions}}
          {{#unless condition.hidden}}
            {{view App.CheckboxView
              classNames="checkbox"
              checkedBinding="condition.checked"
              labelClassNames="kerberos-step1-prerequiste-checkboxes"
              labelBinding="condition.displayText"
            }}
          {{/unless}}
        {{/each}}
      </div>
    </div>
  </div>
</div>
<div class="wizard-footer col-md-12">
  <div class="btn-area">
    {{view App.WizardNextButton buttonId="submit-kerberos-step1" action="submit" target="controller"
           data-qa="wizard-next"}}
  </div>
</div>
